package com.cos.emp.services;

import com.cos.emp.entity.Emp;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @author: COS
 * @time: 2022/9/23 15:12
 * @description:
 */
public interface EmpServices {
    Emp doLogin(String ename, String pwd);

    List<Emp> getEmpsByMaps(Map<String, String> parameterMap);

    PageInfo<Emp> getEmpsByMapsWithPage(Map<String, String> maps, int pageNum);

    boolean delEmp(int eno);

    boolean addEmp(Emp e);

    Emp getEmpByEno(int eno);

    boolean updateEmp(Emp e);
}
